import request from '@/utils/request'

//分页查询
export const peopleApi = (form) => {
  const params = new URLSearchParams()
  params.append("page", form.page)
  params.append("size", form.size)
  params.append("name", form.name || '')
  params.append("deptId", form.deptId || '')
  params.append("startTime", form.startTime || '')
  params.append("endTime", form.endTime || '')

  return request.post("user/page", params)
}

//删除ById
export const deleteByIdApi = (id) => request.get(`user/deleteById/${id}`)